package pojo;

/**
 * @author konley
 * @date 2020-06-09 12:01
 * 饭卡类 存放饭卡信息
 */
public class Card {
    private int cid;    //卡号
    private int sid;    //学号
    private int money;  //余额

    //全参构造方法
    public Card(int cid, int sid, int money) {
        this.cid = cid;
        this.sid = sid;
        this.money = money;
    }

    //无参构造方法
    public Card() {
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Card{" +
                "cid=" + cid +
                ", sid=" + sid +
                ", money=" + money +
                '}';
    }
}
